package com.zhaoyue.study.concurrency.thread;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2016/8/30
 * Time: 15:28
 * To change this template use File | Settings | File Templates.
 */
public class MyRunnable implements Runnable {

    public void run() {
        try {
            Thread.sleep(3000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("Hello Word");
    }


    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        System.out.println("start");
        thread.start();
        System.out.println("end");
    }
}
